ga.view.interfaces
Interface IPhenotypeSpace

All Known Implementing Classes:
BoxShowRoom, PseudoSpace, ShowRoom

public interface IPhenotypeSpace

Interface for an phenotype space. This is used to limit objects to a space with fixed dimensions.

Since:
12.08.2012
Author:
Stephan Dreyer

Method Summary
 boolean contains(math.geom2d.polygon.Polygon2D shape)
          Checks if a shape is inside the space and does not intersect the bounds.
 math.geom2d.polygon.Rectangle2D getOutterBounds()
          Gets the outter bounds of the space as rectangle.
 float minDistanceToWall(math.geom2d.polygon.Polygon2D shape, float angle)
          Calculates the minimum distance of a shape to a wall.
 

Method Detail

contains

boolean contains(math.geom2d.polygon.Polygon2D shape)
Checks if a shape is inside the space and does not intersect the bounds.

Parameters:
shape - Shape that has do be in the space.
Returns:
true if the shape is fully inside of the space.
Since:
12.08.2012

getOutterBounds

math.geom2d.polygon.Rectangle2D getOutterBounds()
Gets the outter bounds of the space as rectangle.

Returns:
Bounds rectangle.
Since:
12.08.2012

minDistanceToWall

float minDistanceToWall(math.geom2d.polygon.Polygon2D shape,
                        float angle)
Calculates the minimum distance of a shape to a wall.

Parameters:
shape - The shape to check for distance to a wall.
angle - The angle of the shape.
Returns:
The minimum distance.
Since:
12.08.2012